package com.frogs.ucenter.entity;

import java.io.Serializable;

public class UserProtection implements Serializable {
    private static final long serialVersionUID = -8375064453982180777L;

    /**
     * This field corresponds to the database column user_protection.id
     */
    private Integer id;

    /**
     * This field corresponds to the database column user_protection.passwd_protection_question
     */
    private String passwdProtectionQuestion;

    /**
     * This field corresponds to the database column user_protection.passwd_protection_answer
     */
    private String passwdProtectionAnswer;
    
    public UserProtection(){
    	
    }
    
    public UserProtection(int id, String passwdProtectionQuestion,String passwdProtectionAnswer) {
    	this.id = id;
    	this.passwdProtectionAnswer = passwdProtectionAnswer;
    	this.passwdProtectionQuestion = passwdProtectionQuestion;
    }

    /**
     * This method returns the value of the database column user_protection.id
     *
     * @return the value of user_protection.id
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method sets the value of the database column user_protection.id
     *
     * @param id the value for user_protection.id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method returns the value of the database column user_protection.passwd_protection_question
     *
     * @return the value of user_protection.passwd_protection_question
     */
    public String getPasswdProtectionQuestion() {
        return passwdProtectionQuestion;
    }

    /**
     * This method sets the value of the database column user_protection.passwd_protection_question
     *
     * @param passwdProtectionQuestion the value for user_protection.passwd_protection_question
     */
    public void setPasswdProtectionQuestion(String passwdProtectionQuestion) {
        this.passwdProtectionQuestion = passwdProtectionQuestion;
    }

    /**
     * This method returns the value of the database column user_protection.passwd_protection_answer
     *
     * @return the value of user_protection.passwd_protection_answer
     */
    public String getPasswdProtectionAnswer() {
        return passwdProtectionAnswer;
    }

    /**
     * This method sets the value of the database column user_protection.passwd_protection_answer
     *
     * @param passwdProtectionAnswer the value for user_protection.passwd_protection_answer
     */
    public void setPasswdProtectionAnswer(String passwdProtectionAnswer) {
        this.passwdProtectionAnswer = passwdProtectionAnswer;
    }
    
    /**
     * 将实体转换成map，作用为隐藏实体变量名，同时缩短实体的参数名
     * @return
     */
    /*public Map<String,Object> toMap() {
    	Map<String,Object> newMap = new HashMap<String,Object>(); 
    	newMap.put("id", id);
    	newMap.put("question", passwdProtectionQuestion);
    	newMap.put("answer", passwdProtectionAnswer);
    	return newMap;
    }*/
}